home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Online / Qpopper / pop_stat.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-01  |  823 b   |  29 lines

  1. /*
  2.  * Copyright (c) 1989 Regents of the University of California.
  3.  * All rights reserved.  The Berkeley software License Agreement
  4.  * specifies the terms and conditions for redistribution.
  5.  */
  6.  
  7. #ifndef lint
  8. static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
  9. static char SccsId[] = "@(#)@(#)pop_stat.c    2.2  2.2 3/18/91";
  10. #endif
  11.  
  12. #include <stdio.h>
  13. #include <sys/types.h>
  14. #include "popper.h"
  15.  
  16. /* 
  17.  *  stat:   Display the status of a POP maildrop to its client
  18.  */
  19.  
  20. int pop_stat (p)
  21. POP     *   p;
  22. {
  23. #ifdef DEBUG
  24.     if (p->debug) pop_log(p,POP_DEBUG,"%d message(s) (%d octets).",p->msg_count-p->msgs_deleted,p->drop_size-p->bytes_deleted);
  25. #endif
  26.     return (pop_msg (p,POP_SUCCESS,
  27.         "%u %u",p->msg_count-p->msgs_deleted,p->drop_size-p->bytes_deleted));
  28. }
  29.